import { Status } from './dicts';
// import { mock } from 'mockjs';

export interface User {
  uid: number;
  name: string;
  password: string;
  roles: string[];
  status: Status;
  createTime: Date;
  updateTime?: Date;
}
const createTime = new Date();
const updateTime = createTime;

export default <User[]>[
  {
    uid: 1,
    name: 'admin',
    password: 'admin',
    roles: ['admin'],
    status: Status.enable,
    createTime,
    updateTime,
  },
  {
    uid: 2,
    name: 'editor',
    password: '123456',
    roles: ['editor'],
    status: Status.enable,
    createTime,
    updateTime,
  },
  {
    uid: 3,
    name: 'customerService',
    password: '123456',
    roles: ['customerService'],
    status: Status.enable,
    createTime,
    updateTime,
  },
  {
    uid: 4,
    name: 'user003',
    password: '123456',
    roles: ['editor', 'customerService'],
    status: Status.enable,
    createTime,
    updateTime,
  },
  {
    uid: 5,
    name: 'user004',
    password: '123456',
    roles: ['guest'],
    status: Status.enable,
    createTime,
    updateTime,
  },
];
